//
//  NetworkView.h
//  AccSim
//
//  Created by Otto Chrons on 9/25/08.
//  Copyright 2008 Enzymia Ltd.. All rights reserved.
//

#import <UIKit/UIKit.h>
#include <unistd.h>
#include <netdb.h>

// view for configuring network parameters
@interface NetworkView : UIViewController  {
	
	// Views the user can tap on
	UIImageView *firstPieceView;
	UIImageView *secondPieceView;
	UIImageView *thirdPieceView;
	
	NSString *ipAddr_send;
	NSString *ipAddr_from;
	
	CGPoint startTouchPosition; 
	
	
	// using BSD sockets
	int udpSocket;
	struct sockaddr_in targetAddress;
	bool networkEnabled;
}

@property (nonatomic, retain) IBOutlet UIImageView *firstPieceView;
@property (nonatomic, retain) IBOutlet UIImageView *secondPieceView;
@property (nonatomic, retain) IBOutlet UIImageView *thirdPieceView;

- (IBAction)onLeftBtn:(id)sender;
- (IBAction)onMiddleBtn:(id)sender;
- (IBAction)onRightBtn:(id)sender;

@end
